<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<script type="text/javascript" src="js/jquery-2.2.3.min.js" ></script>
		<title>ajax</title>
		<script type="text/javascript">
			$(function(){
				$("#_input").click(function(){
					$("#_input").next().empty();
					$.ajax({
						type:"get",
						url:"www.mysite.com/myapi",
						success: function(data){
							$("#_input").next().html(data);
						}
					});
				});
			});
		</script>
	</head>
	<body>
		<input id="_input" type="button" value="ajax"/>
		<div>
		</div>
	</body>
</html>
